﻿@model List<Joomiz.ReleaseCalendar.Models.PeriodItem>

@{
    ViewBag.Title = "Detalhes";
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
}

<link href="@Url.Content("~/Content/bootstrap.css")" rel="stylesheet" />

<h2>Detalhes Calendário @Request.QueryString["description"]</h2>


<table class="table table-bordered">
    <thead>
        <tr>
            <th>Descrição</th>
            <th>Período</th>
            <th>Início</th>
            <th>Fim</th>
        </tr>
    </thead>
    <tbody>
        @foreach (Joomiz.ReleaseCalendar.Models.PeriodItem c in Model)
        {
            <tr>
                <td>@c.Description</td>
                <td>@(c.Type == 1 ? "Release" : (c.Type == 2 ? "Infraestrutura" : "Freezing"))</td>
                <td>@c.Start</td>
                <td>@c.End</td>
            </tr>
        }
    </tbody>

</table>